GET api/webshop/article/stock/{valueOption}/eans?eanList[0]={eanList[0]}&eanList[1]={eanList[1]}
Provides a list of EANs, each with a list of stock quantity, per ShopId, given a stock value option and a list of Eans.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| valueOption |
Stock value option. |
Core.Models.Domain.StockValueOption |
Required |
| eanList |
List EANs. |
Collection of integer |
Required |
Body Parameters
None.
Response Information
Resource Description
List of stock quantity models, with stock quantity per ShopId.
Collection of StockList| Name | Description | Type | Additional information |
|---|---|---|---|
| Identifier | string |
None. |
|
| Result | Collection of ShopQuantityStock |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Identifier": "sample string 1",
"Result": [
{
"ShopId": 1,
"Quantity": 2
},
{
"ShopId": 1,
"Quantity": 2
}
]
},
{
"Identifier": "sample string 1",
"Result": [
{
"ShopId": 1,
"Quantity": 2
},
{
"ShopId": 1,
"Quantity": 2
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfStockListDTOOfStockShopQuantityDTOiTlCtTkQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
<StockListDTOOfStockShopQuantityDTOiTlCtTkQ>
<Identifier>sample string 1</Identifier>
<Result>
<StockShopQuantityDTO>
<Quantity>2</Quantity>
<ShopId>1</ShopId>
</StockShopQuantityDTO>
<StockShopQuantityDTO>
<Quantity>2</Quantity>
<ShopId>1</ShopId>
</StockShopQuantityDTO>
</Result>
</StockListDTOOfStockShopQuantityDTOiTlCtTkQ>
<StockListDTOOfStockShopQuantityDTOiTlCtTkQ>
<Identifier>sample string 1</Identifier>
<Result>
<StockShopQuantityDTO>
<Quantity>2</Quantity>
<ShopId>1</ShopId>
</StockShopQuantityDTO>
<StockShopQuantityDTO>
<Quantity>2</Quantity>
<ShopId>1</ShopId>
</StockShopQuantityDTO>
</Result>
</StockListDTOOfStockShopQuantityDTOiTlCtTkQ>
</ArrayOfStockListDTOOfStockShopQuantityDTOiTlCtTkQ>